package io.renren.modules.app.dao;

import io.renren.modules.app.entity.EarningsRecordingEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

/**
 * 收益记录表
 * 
 *
 *
 * @date 2022-04-20 22:37:45
 */
@Mapper
public interface EarningsRecordingDao extends BaseMapper<EarningsRecordingEntity> {

    /**
     * 获取用户今日收益金额
     *
     * @param userId 用户id
     * @return
     */
    public BigDecimal queryUserTodayIncomeAmount(Long userId);

    /**
     * 统计用户总收益
     *
     * @param userId 用户id
     * @return
     */
    public BigDecimal queryUserTotalRevenue(Long userId);

}
